﻿using DrawTools;
using Inaction.Message;
using LS.Screening.UI.Common;
using Prism.Commands;
using ReactiveUI.Fody.Helpers;

namespace LS.DicomViewer.ViewModels
{
    public class ViewerConfigViewModel : ViewModel
    {
        [Reactive]
        public DrawerConfig Config { get; set ; } = DrawerConfig.Instance;

        public DelegateCommand SaveCommand { get; set; }

        public ViewerConfigViewModel()
        {
            SaveCommand = new DelegateCommand(Save);
        }

        private void Save()
        {
            DrawerConfig.Instance.Save();
            MessageHelper.ShowMessage("保存成功!");
        }
    }
}